package com.ksd.modules.note.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ksd.common.po.BatchIdsPO;
import com.ksd.commons.IBaseService;
import com.ksd.modules.note.entity.AdminNote;
import com.ksd.modules.note.po.AdminNoteSavePO;
import com.ksd.modules.note.po.AdminNoteSearchPO;
import com.ksd.modules.note.vo.AdminNoteVo;

public interface IAdminNoteService extends IBaseService<AdminNote> {


    /**
     * 查询列表
      * @param adminNoteSearchPO
     * @return
     */
    Page<AdminNoteVo> findAdminNotes(AdminNoteSearchPO adminNoteSearchPO);

    /**
     * 回收站
     * @param adminNoteSearchPO
     * @return
     */
    Page<AdminNoteVo> findAdminNotesRecyle(AdminNoteSearchPO adminNoteSearchPO);

    /**
     * 保存和更新
     * @param adminNoteSavePO
     * @return
     */
    AdminNoteVo saveUpdateAdminNote(AdminNoteSavePO adminNoteSavePO);

    /**
     * 根据id获取明细
     * @param id
     * @return
     */
    AdminNoteVo getAdminNoteById(Long id);

    /**
     * 单个逻辑删除
     * @param id
     * @return
     */
    Boolean deleteAdminNoteById(Long id);

    /**
     * 单个恢复
     * @param id
     * @return
     */
    Boolean recoverByIdAdminNote(Long id);

    /**
     * 单个物理删除
     * @return
     */
    Boolean removeAdminNoteById(Long id);

    /**
     * 批量逻辑删除
     * @param batchIdsPO
     * @return
     */
    Boolean bacthDeletesAdminNote(BatchIdsPO batchIdsPO);

    /**
     * 批量恢复
     * @param batchIdsPO
     * @return
     */
    Boolean batchRecoversAdminNote(BatchIdsPO batchIdsPO);

    /**
     * 批量物理删除
     * @param batchIdsPO
     * @return
     */
    Boolean batchRemovesAdminNote(BatchIdsPO batchIdsPO);


    /**
     * 修改状态
     * @param id
     * @param column
     * @param value
     * @return
     */
    boolean updateStatus(Long id,String column,Integer value);

    /**
     * 修改状态
     * @param id
     * @param column
     * @param value
     * @return
     */
    boolean updateStatusStr(Long id,String column,String value);

    /**
     * 批量上架
     *
     * @param batchIdsPO
     * @return
     */
    Boolean batchDowns(BatchIdsPO batchIdsPO);

    /**
     * 批量上架
     *
     * @param batchIdsPO
     * @return
     */
    Boolean batchUps(BatchIdsPO batchIdsPO);
}
